package com.headingsoft.jxc.web;

import com.headingsoft.jxc.domain.GoodsCategory;
import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@RooWebScaffold(path = "goodscategorys", formBackingObject = GoodsCategory.class)
@RequestMapping("/goodscategorystree")
@Controller
public class GoodsCategoryTreeController {
	
	public String getTopCategory() {
		GoodsCategory.findGoodsCategorysByParent(null).getResultList();
		return null;
	}
}
